{% extends "include/base.html" %}
{% block title %}Записи сообщества {{ group.title }}{% endblock %}
{% block header %}{{ group.title }}{% endblock %}
{% block content %}

<p>{{ group.description }}</p>

{% for post in page %}
{% load thumbnail %}
{% thumbnail post.image "960x339" crop="center" upscale=True as im %}
<img class="card-img" src="{{ im.url }}">
{% endthumbnail %}
<h3>
  Автор: {{ post.author.get_full_name }}, дата
  публикации: {{ post.pub_date|date:"d M Y" }}
</h3>
<p>{{ post.text|linebreaksbr }}</p>
<hr>
{% endfor %}

{% include "include/paginator.html" %}

{% endblock %}